<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>伪数组的本质是一个对象, 该对象使用从0开始的连续正整数作为属性名, 并且通过一个length属性记录了所有属性的个数</h1>
    <script>
        var arr = {
            0: 'hello',
            1: 'world',
            2: '你好',
            length: 3
        }
        console.log(arr.length,arr['length'],arr[0]);
    </script>
</body>

</html>